import request from '@/config/axios'

export interface CommonPhrasesVO {
  id: number
  levelId: number
  commonPhrases: string
  status: byte
}

// 查询相亲会员常用语列表
export const getCommonPhrasesPage = async (params) => {
  return await request.get({ url: `/blind/common-phrases/page`, params })
}

// 查询相亲会员常用语详情
export const getCommonPhrases = async (id: number) => {
  return await request.get({ url: `/blind/common-phrases/get?id=` + id })
}

// 新增相亲会员常用语
export const createCommonPhrases = async (data: CommonPhrasesVO) => {
  return await request.post({ url: `/blind/common-phrases/create`, data })
}

// 修改相亲会员常用语
export const updateCommonPhrases = async (data: CommonPhrasesVO) => {
  return await request.put({ url: `/blind/common-phrases/update`, data })
}

// 删除相亲会员常用语
export const deleteCommonPhrases = async (id: number) => {
  return await request.delete({ url: `/blind/common-phrases/delete?id=` + id })
}

// 导出相亲会员常用语 Excel
export const exportCommonPhrases = async (params) => {
  return await request.download({ url: `/blind/common-phrases/export-excel`, params })
}
